import React from 'react'
import { Form, Input } from 'antd'
const { Item } = Form
// 将文本转化为数字类型
function transformNumber (v: string) {
  if (v) {
    return Number(v)
  }
}
function Main () {
  return (
    <Item label='最小标的' name='minDisputeAmount' rules={[{ type: 'number', message: '请输入数字', transform: v => transformNumber(v) }]}>
      <Input placeholder='请输入最小标的' addonAfter='万' allowClear />
    </Item>
  )
}

export default Main
